package com.cyt.sys.util;

import lombok.Data;

import java.util.Map;

/**
 * Created by Administrator on 2019/12/30.
 */
@Data
public class SMSDto {

    private String type;//1平台 2应用

    private String smsMasterSecret;//应用密钥

    private String smsAppKey;//应用key

    private String mobile;//接收人手机号

    private String temp_id;//模板id

    private Map<String, String> temp_para;//参数

    //平台短信构造方法（无需密钥和key）
    public SMSDto(String type, String mobile, String temp_id, Map<String, String> temp_para) {
        this.type = type;
        this.mobile = mobile;
        this.temp_id = temp_id;
        this.temp_para = temp_para;
    }
    //应用短信构造方法（全参数）
    public SMSDto(String type, String smsMasterSecret, String smsAppKey, String mobile, String temp_id, Map<String, String> temp_para) {
        this.type = type;
        this.smsMasterSecret = smsMasterSecret;
        this.smsAppKey = smsAppKey;
        this.mobile = mobile;
        this.temp_id = temp_id;
        this.temp_para = temp_para;
    }
}
